package com.sy.service.impl;

import com.sy.bean.User;
import com.sy.bean.management.UpdatePass;
import com.sy.bean.management.UserLogin;
import com.sy.bean.management.UserStatus;
import com.sy.common.bean.PageBean;
import com.sy.common.crud.BaseServiceImpl;
import com.sy.common.exception.BusinessException;
import com.sy.mapper.UserMapper;
import com.sy.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service
public class UserServiceImpl extends BaseServiceImpl<User, UserMapper> implements UserService {
    @Autowired
    UserMapper userMapper;
    @Override
    public User queryByUsername(String username) {
        return userMapper.queryByUsername(username);
    }

    @Override
    public UserStatus queryStatus(String username) {
        return userMapper.queryStatus(username);
    }

    @Override
    public int updatePass(UpdatePass updatePass) {
        return userMapper.updatePass(updatePass);
    }
}
